/*
 * To change this template, choose Tools | Templates and open the template in
 * the editor.
 */
package cn.eclass.bean;

import cn.eclass.bean.api.IGiftOrderBean;
import cn.eclass.dao.GiftOrderDao;
import cn.eclass.entity.GiftOrderEntity;
import java.util.List;

/**
 *
 * @author fortruth
 */
public class GiftOrderBean implements IGiftOrderBean {

    GiftOrderDao dao = new GiftOrderDao();

    @Override
    public List<GiftOrderEntity> getByUser(int userId) {
    	return dao.getByUser(userId);
    }
    
    @Override
    public GiftOrderEntity add(GiftOrderEntity entity) {
        return dao.add(entity);
    }

    @Override
    public boolean update(GiftOrderEntity entity) {
        return dao.update(entity);
    }

    @Override
    public boolean delete(int id) {
        return dao.delete(id);
    }

    @Override
    public GiftOrderEntity get(int id) {
        return dao.get(id);
    }

    @Override
    public List<GiftOrderEntity> list() {
        return dao.list();
    }
}
